/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.sms.service.order;

import com.google.common.collect.Maps;
import info.peigen.hotpot.common.service.base.ServiceOrderBase;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.LinkedHashMap;

/**
 * <b>(AbstractSmsServiceOrder)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/1/13
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@FieldDefaults(level = AccessLevel.PROTECTED)
@Accessors(chain = true)
public abstract class AbstractSmsServiceOrder extends ServiceOrderBase {

    @NotEmpty
    String                        templateId;
    /** 模版参数 */
    @NotEmpty
    @Builder.Default
    LinkedHashMap<String, String> params = Maps.newLinkedHashMap();
}